package main

import (
	"./elastic"
	"log"
)

func main() {
	//elastic.QuerySearchAll("coolq", 10, 2)
	//elastic.QueryCount("coolq")

	//创建索引
	mapping := elastic.GetEsMapping()
	err := elastic.CreateIndexMapping("coolq_data", "group_data", mapping)
	if err != nil {
		log.Println(err)
	}

	elastic.ElaToEla()
}
